import Vue from 'vue'
import Router from 'vue-router'
import index from '@/components/page/index'
import login from '@/components/page/login'
import article from '@/components/page/article'
import artcleList from '@/components/common/articleList';

Vue.use(Router)

export default new Router({
  linkExactActiveClass: 'kh-side-nav-actv',
  linkActiveClass: 'kh-side-nav-actv',
  routes: [
    {
      path: '/',
      name: 'index',
      component: index
    },
    {
      path: '/login',
      name: 'login',
      component: login
    },
    {
      path: '/article',
      component: article,
      children: [
        {
          path: '',
          component: artcleList
        }
      ]
    }
  ]
})
